<!DOCTYPE html >
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <link rel="icon" type="image/x-icon" th:href="${application.iconPath}" />
    <title>ssomenu</title>
    <div th:include="../templates/common::html_header"></div>
</head>

<body>
<div class="layui-form contain ">
    <form class="layui-form layui-form-pane" th:action="@{{path}/ssomenu/listPage(path=${application.basePath}) }" method="post" name="query_from" id="query_from">
        <input type="hidden" name="pageNum" id="pageNum"/>
        <input type="hidden" name="pageSize" id="pageSize"/>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">系统</label>
                <div class="layui-input-block">
                    <select name="systemCode" id="systemCode">
                    </select>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">名称</label>
                <div class="layui-input-block">
                    <input type="text" name="name" class="layui-input"/>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">等级</label>
                <div class="layui-input-block">
                    <select name="grade" id="grade">
                        <option value="1">1</option>
                        <option value="2">2</option>
                        <option value="3">3</option>
                    </select>
                </div>
            </div>
            <input type="hidden" name="parentCode" id="parentCode"/>
            <div class="layui-inline">
                <button type="button" id="query_data" class="layui-btn layui-btn-normal">查询</button>
                <button type="reset" id="resset_from" class="layui-btn">重置</button>
            </div>

        </div>
    </form>
    <hr/>

    <button authkey="sso_menu_set_add" class="layui-btn layui-btn-sm layui-btn-primary" id="add">
        <i class="layui-icon" style="color: green;">&#xe654;</i>
        添加
    </button>

    <button authkey="sso_menu_set_delete" class="layui-btn layui-btn-sm layui-btn-primary" id="delete_all">
        <i class="layui-icon" style="color: red;">&#xe640;</i>
        &nbsp;删除
    </button>

    <button class="layui-btn layui-btn-sm layui-btn-primary" onclick="javascript:location.reload();">
        <i class="layui-icon" style="">&#x1002;</i>
        &nbsp;刷新
    </button>

    <button class="layui-btn layui-btn-sm layui-btn-primary bg" id="parentCodeName" disabled></button>

    <table id="table_list_id" lay-filter="table_list_tool"></table>
    <div id="page_div" style="display: none"></div>

</div>
</body>
<script type="text/html" id="list_tool_tpl">
    <!--
    <img class="butedit" title='查看' lay-event="detail"
         th:src="@{{path}/istyle/images/detail.png(path=${application.basePath}) }"/>
    -->
    <img authkey="sso_menu_set_update" class="butedit" title='编辑' lay-event="edit"
         th:src="@{{path}/istyle/images/edit.png(path=${application.basePath}) }"/>

    <img authkey="sso_menu_set_delete" class="butdelete" title='删除' lay-event="del"
         th:src="@{{path}/istyle/images/delete.png(path=${application.basePath}) }"/>

</script>
</html>
<script th:src="@{{path}/script/sso/menu/ssomenu_list.js(path=${application.basePath}) }" type="text/javascript" charset="utf-8"></script>
<div th:include="../templates/common::html_footer"></div>
